﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="EditUserInfo.aspx.cs" Inherits="OUSMS.EditUserInfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="topchannel">
        更新用户信息		 
    </div>
    <asp:FormView ID="userInfoFormView" runat="server" Width="100%"
        ItemType="OUSMS.AppLogic.DataAccessLayer.Users"
        SelectMethod="GetUsersByID">        
        <EditItemTemplate>
            <table class="table1" border="0" cellspacing="1" cellpadding="2">
                <tr class="row1">
                    <td style="width: 15%"><b>登录名</b></td>
                    <td style="width: 35%"><%# Item.LoginName %></td>
                    <td style="width: 15%"><b>注册时间</b></td>
                    <td style="width: 35%"><%# Item.CreateDateTime.ToString("yyyy/MM/dd HH:mm") %></td>
                </tr>
                <tr class="row2">
                    <td ><b>性别</b></td>
                    <td ><asp:DropDownList runat="server" ID="genderDDL">
                            <asp:ListItem Text="男" Value="男"></asp:ListItem>
                            <asp:ListItem Text="女"></asp:ListItem>
                         </asp:DropDownList></td>
                    <td ><b>姓名</b></td>
                    <td ><%# Item.Name %></td>
                </tr>
                <tr class="row1">
                    <td ><b>邮件</b></td>
                    <td ><%# Item.Email %></td>
                    <td ><b>电话</b></td>
                    <td ><%# Item.Phone %></td>
                </tr>
                <tr class="row2">
                    <td><b>职称</b></td>
                    <td><%# Item.Titles.Name %></td>
                    <td><b>职务</b></td>
                    <td><%# Item.Position %></td>
                </tr>
                <tr class="row1">
                    <td><b>一级部门</b></td>
                    <td><%# Item.Departments.Name %></td>
                    <td><b>二级部门</b></td>
                    <td><%# Item.SecondDepartments.Name %></td>
                </tr>
                <tr class="row2">
                    <td><b>批准人</b></td>
                    <td><%# Item.Users2.Name %></td>
                    <td><b>批准日期</b></td>
                    <td><%# Item.ApproveDateTime.HasValue? Item.ApproveDateTime.Value.ToString("yyyy/MM/dd HH:mm"):"" %></td>
                </tr>
                <tr class="row1">
                    <td colspan="4"><b>个人介绍</b></td>
                </tr>
                <tr class="row2">
                    <td colspan="4" style="word-wrap:break-word; word-break:break-all; "><%# Item.Introduction %></td>
                </tr>
                <tr class="row1">
                    <td colspan="4" align="center" style="font-weight: bold">
                        <asp:Button ID="editBtn" runat="server" BackColor="Gray" Text="编  辑" Width="80px" Height="25px" /></td>
                </tr>
            </table>
        </EditItemTemplate>
    </asp:FormView>
</asp:Content>
